package com.jie.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jie.dto.ActivityDTO;
import com.jie.dto.ActivityHotDTO;
import com.jie.entity.Activity;
import com.jie.vo.ActivityVo;
import com.jie.vo.ConditionVO;
import com.jie.vo.PageResult;

import java.util.List;

/**
 * <p>
 * 热门活动表 服务类
 * </p>
 *
 * @author jie
 * @since 2024-04-24
 */
public interface IActivityService extends IService<Activity> {

    /**
     * 查询活动列表
     * @param conditionVO
     * @return
     */
    PageResult<ActivityDTO> getActivityPageList(ConditionVO conditionVO);

    /**
     * 用户参加活动
     * @param activityId
     */
    void joinActivityInfo(Integer activityId);

    /**
     * 热榜数据
     * @return
     */
    List<ActivityHotDTO> activityHotPopularList();

    ActivityDTO getActivityById(Integer activityId);

    boolean addActivityInfo(ActivityVo activityVo);

    boolean updateActivityInfo(ActivityVo activityVo);

    boolean deleteActivityInfo(Integer activityId);

    /**
     * 取消活动
     * @param activityId
     * @return
     */
    boolean cancelLockActivityInfo(Integer activityId);
}
